<table class="table table-striped table-condensed table-hover">
  <tr>
	<th style="width:200px;">Title</th>
	<th>Body</th>
	<th>Status</th>
  </tr>
<? foreach ($this->msgList as $msg): ?>
  <tr>
	<td><a href="/messages/show?id=<?= $msg->id ?>"><? if (!$msg->isRead($this->user->id)): ?><strong><? endif; ?><?= $msg->title ?><? if (!$msg->isRead($this->user->id)): ?></strong><? endif; ?></a></td>
	<td><div class="msg-text-inline"><?= $msg->text ?></div></td>
	<td>
	  <? if (!$msg->isRead($this->user->id)): ?>
	    <span class="label label-success">New</span>
	  <? else: ?>
	    <span class="label">Old</span>
	  <? endif; ?></td>
  </tr>
<? endforeach ?>
</table>

